/**
  ******************************************************************************
  * @file    Top.h
  * @author  Dajin Li
  * @version V0.0.1
  * @date    08-08-2015 
  * @brief   This file contains headers for LCD display element 
  *			  	 
  *          
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; KION(SZ) R&D Center
  *
  * Licensed under KION, (the "License");
  *
  ******************************************************************************
  */


#ifndef __TOP_H_
#define __TOP_H_
/* Includes ------------------------------------------------------------------*/
#include "global.h"
#include "rtc.h"

//typedef enum 
//{
//	SIZE_22 = 0,
//	SIZE_12 = 1,
//	SIZE_10 = 2,
//	SIZE_7  = 3,
//}font_size;
#define SIZE_22 0
#define SIZE_12 1
#define SIZE_10 2
#define SIZE_7  3





/* Global variables ---------------------------------------------------------*/





#define STEER_ANGLE_WIDTH                 202
#define STEER_ANGLE_HEIGHT                40

#define STEER_ANGLE_ROW                   40
#define STEER_ANGLE_COL                   324

#define SPEED_METER_WIDTH                 202
#define SPEED_METER_HEIGHT                101
#define SPEED_METER_ROW                   40
#define VERT_LINE_ROW                     26

//#define NO_ACTIVE_ERROR_CHN_INDEX         47                            // 47, no active errors
//#define NO_STORED_ERROR_CHN_INDEX         48                            // 48, no stored errors

#define SETINGS_ROW                       33
#define SETINGS_ICON_ROW                  35

#define SETINGS_MENU_ROW                  35

#define SETINGS_ROW_OFFSET                56
#define Tab_ROW                           16
#define LANGUAGE_ROW                      43

#define CHECKBOX_ROW                      120

#define TIMEDATE_ROW                      130
#define HOURMETER_ICON_ROW                130

#define ERROR_CODES_ROW                   30

#define ARROW_ROW_OFFSET                  150
#define ARROW1_ROW_OFFSET                 140
#define STATUS_ROW_OFFSET                 2
#define TAB_ROW_OFFSET                    20


#define ICON_CHARGE_BAT_FIN_ROW           1
#define ICON_BOOT_LIFT_ROW                16
#define ICON_ASSIST_ROW                   31
#define ICON_PARK_ROW                     51
#define ICON_LEFT_ROW                     66
#define ICON_DIR_ROW                      76
#define ICON_RIGHT_ROW                    89
#define ICON_SEAT_BELT_ROW                99
#define ICON_CREEP_ROW                    112
#define ICON_SERVICE_BUTTOM_ROW           126
#define ICON_HEART_ROW                    140

typedef struct
{
	s16 row;				//location y row
	s16 column;			    //location x column
    s16 width;
    s16 height;
 	u8 *SIconData;		    //Icon data
    u8 gray;
}SmallIcon;

typedef unsigned char font_size;
typedef const unsigned char font_t; 
//typedef const unsigned char font_size; 

extern font_t welcome_pic[8][128];
extern font_t welcome_pic_cn[8][128];
extern font_t input_pincode_cn[384];
extern font_t next_service_time_cn[256];
extern font_t moto_tempurature_too_high1_cn[256];
extern font_t moto_tempurature_too_high2_cn[512];
extern font_t oil_lack_cn[512];
extern font_t delete_confirm_cn[512];
extern font_t back_light_cn[88];
extern font_t number_Size22[10][72];
extern font_t sign_size22[10][104];
extern font_t number_Size12[10][26];
extern font_t sign_size12[10][26];
extern font_t char_h_lower_Size12[26];
extern font_t number_Size7[10][7];
extern font_t char_upperer_Size7[26][9] ;
extern font_t sign_size7[11][9];
extern font_t char_lowerer_Size7[26][8];
extern font_t char_lowerer_Size10[26][24];
extern font_t char_upperer_Size10[26][24];
extern font_t number_Size10[10][26];
extern font_t sign_size10[10][26];
extern font_t number_Size8[10][7];
extern font_t time_log[16];
extern font_t maintance_info_cn[512];
extern font_t bat_cutoff_info_cn[512];
extern font_t bat_low_info_cn[2][512];
extern font_t input_adminpincode_cn[384];
extern font_t input_enternewpincode_cn[384];
extern font_t add_pincode_confirm_cn[512];
extern font_t new_pincode_cn[256];

extern SmallIcon SIconSpeedZero;
extern SmallIcon SIconSpeed1Km;
extern SmallIcon SIconSpeed2Km;
extern SmallIcon SIconSpeed3Km;
extern SmallIcon SIconSpeed4Km;
extern SmallIcon SIconSpeed5Km;
extern SmallIcon SIconSpeed6Km;
extern SmallIcon SIconSpeed7Km;
extern SmallIcon SIconSpeed8Km;
extern SmallIcon SIconSpeed9Km;
extern SmallIcon SIconSpeed10Km;
extern SmallIcon SIconSpeed11Km;
extern SmallIcon SIconSpeed12Km;
extern SmallIcon SIconSpeed13Km;
extern SmallIcon SIconSpeed14Km;
extern SmallIcon SIconSpeed15Km;
extern SmallIcon SIconSpeed16Km;
extern SmallIcon SIconSpeed17Km;
extern SmallIcon SIconSpeed18Km;
extern SmallIcon SIconSpeed19Km;
extern SmallIcon SIconSpeed20Km;
extern SmallIcon SIconSpeed21Km;
extern SmallIcon SIconSpeed22Km;
extern SmallIcon SIconSpeed23Km;
extern SmallIcon SIconSpeed24Km;
extern SmallIcon SIconSpeed25Km;
extern SmallIcon SIconSpeed26Km;
#endif

